#include <iostream>
#include <vector>
#include "sst_table.h"
#include "common.h"
#include "entry.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <assert.h>

namespace VirtualR {
class LevelZero {
 public:
  LevelZero(std::string dir_);
  std::pair<bool, std::string> search(std::string key);
  void get_index_content_for_debug();
  void add(SkipList &mem, uint64_t no);
  std::vector<Entry_t> get_all_entry();
  uint64_t size();
  void clear();

 private:

  void dump_index_to_disk();
  std::string dir_;
  std::vector<SSTable> sst_list_;
  uint64_t total_byte_size_;
  std::string lasy_key_;
  uint64_t file_count_;
};
}